#include <iostream>
using namespace std;
class A
{
	public:
		A(int n){a=n;};
		A(){};
		~A(){};
		A& operator++(){this->a+=1;return *this;}
		A operator++(int a){this->a+=1;return (this->a-1);}
//	private:
	public:
	int a;
};

int main()
{
	A i;
	i.a = 0;
	A a;
	a.a = 9;
	i = a++;
	cout<<i.a<<endl;
	i = ++a;
	cout<<i.a<<endl;
	return 0;
}
